
  <div class="x_panel">
    <div class="x_content" style="display: block;">
      <!--表格主体内容-->
      <div class="nav navbar-right panel_toolbox">
          <a class="fa fa-plus" href="/user/add.html"> 添加</a>
      </div>
      <br><br>
      <div class="row-fluid">
        <form action="/user/index.html" method="get">
          <div class="col-md-3 col-sm-3 col-xs-3">
            <label class="control-label">手机号</label>
            <input type="text" class="form-control" name="form[phone]" value="{$query.phone}">
          </div>
          <button type="submit" class="btn btn-primary" style="margin-bottom: -58px;">搜索</button>
        </form>
      </div>
      <div class="cont">
        <table class="table table-bordered table-striped">
          <thead>
          <tr>
            <th width="100px">序号</th>
            <th>电话</th>
            <th>类型</th>
            <th>微信昵称</th>
            <th>微信头像</th>
            <th>性别</th>
            <th>城市</th>
            <th>绑定情况</th>
            <th>绑定时间</th>
            <th>创建时间</th>
            <th>状态</th>
            <th>操作</th>
          </tr>
          </thead>
          <tbody>
          {foreach $user.lists as $useritem}
          <tr>
            <td>{$useritem.user_id}</td>
            <td>{$useritem.phone}</td>
            <td>{if $useritem.type==0}用户{elseif $useritem.type==1}店主{else}店长{/if}</td>
            <td>{$useritem.wechat_name}</td>
            <td>{if $useritem.head_img}<img src="{$useritem.head_img}" width="50" height="50">{/if}</td>
            <td>{if $useritem.gender==0}未知{elseif $useritem.gender==1}男{else}女{/if}</td>
            <td>{$useritem.city}</td>
            <td>{if $useritem.bind_status==1}已绑定{else}未绑定{/if}</td>
            <td>{$useritem.bind_time}</td>
            <td>{$useritem.create_time}</td>
            <td>{if $useritem.status==1}有效{else}无效{/if}</td>
            <td>
              <div class="x_content">
                <a class="btn btn-primary btn-xs" href="{eval U(['user/edit','user_id'=>$useritem.user_id])}">编辑</a>
                <a class="btn btn-primary btn-xs" href="{eval U(['user/add-card','user_id'=>$useritem.user_id])}">充值</a>
                <a class="btn btn-primary btn-xs" href="{eval U(['user/other-detail','user_id'=>$useritem.user_id])}"> 查看在线情况、收入</a>
                <button class="btn btn-danger btn-xs" data-toggle="dropdown">{if $useritem.status==1}设为无效{else}设为有效{/if}
                  <i class="icon-angle-down"></i></button>
                <ul class="dropdown-menu">
                  <li><a href="{eval U(['user/save-status','user_id'=>$useritem.user_id])}">确定</a></li>
                  <li><a href="javascript:;">取消</a></li>
                </ul>
              </div>
            </td>
          </tr>
          {/foreach}
          </tbody>
        </table>
        <!--分页-->

        {Yii::$app->view->render('/com/pager.php',['pager'=>$user['pager']])}
      </div>
    </div>
  </div>

